class Music {
  constructor () {
    this.bg_m = new Audio()
    this.bg_m.src = 'audio/bgm.mp3'
    this.bullet_m = new Audio()
    this.bullet_m.src = 'audio/bullet.mp3'
    this.boom_m = new Audio()
    this.boom_m.src = 'audio/boom.mp3'
  }
  bgmPlay () {
    this.bg_m.loop = true
    this.bg_m.play()
  }
  bulletPlay () {
    this.bullet_m.currentTime = 0
    this.bullet_m.play()
  }
  boomPlay () {
    this.boom_m.currentTime = 0
    this.boom_m.play()
  }
}
export default Music